import request from '@/utils/request'

// 查询代收订单信息列表
export function listC_order(query) {
  return request({
    url: '/payment/c_order/list',
    method: 'get',
    params: query
  })
}

// 查询代收订单信息详细
export function getC_order(id) {
  return request({
    url: '/payment/c_order/' + id,
    method: 'get'
  })
}

// 新增代收订单信息
export function addC_order(data) {
  return request({
    url: '/payment/c_order',
    method: 'post',
    data: data
  })
}

// 修改代收订单信息
export function updateC_order(data) {
  return request({
    url: '/payment/c_order',
    method: 'put',
    data: data
  })
}

// 删除代收订单信息
export function delC_order(id) {
  return request({
    url: '/payment/c_order/' + id,
    method: 'delete'
  })
}
